package user;

import book.BookList;
import operation.IOperation;

/**
 * Created with IntelliJ IDEA.
 * Description:
 */
public abstract class User {
    protected String name;

    //在数组里面放操作
    protected IOperation[] iOperations;

    public User(String name) {
        this.name = name;
    }

    public abstract int menu();

    //根据choise选择调用的方法的函数
    public void doWork(int choice, BookList bookList){
        iOperations[choice].work(bookList);
    }
}
